
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>头像存储迁移 · Passport业务手册</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xiajie <xiajie01@baidu.com>">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-multipart/multipart.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-codeblock-filename/block.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-page-footer-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-okaidia.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-custom-js-css/03c70a23567f2990c05f5cb8c64400a2-main.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-custom-js-css/27b4a027a84f513ce71206e15df835dc-folding-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../log-masking/" />
    
    
    <link rel="prev" href="../portrait-url-refactor/" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
    

    

    
        
        <li class="header">[第一章] 开发指南</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                        <b>1.1.</b>
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../guides/develop/awareness.html">
            
                <a href="../../guides/develop/awareness.html">
            
                    
                        <b>1.2.</b>
                    
                    新人必读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../guides/develop/doc.html">
            
                <a href="../../guides/develop/doc.html">
            
                    
                        <b>1.3.</b>
                    
                    文档撰写
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../guides/services.html">
            
                <a href="../../guides/services.html">
            
                    
                        <b>1.4.</b>
                    
                    流量接入介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../guides/services/shifen.html">
            
                <a href="../../guides/services/shifen.html">
            
                    
                        <b>1.4.1.</b>
                    
                    灵渠(shifen平台)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../guides/services/bgw.html">
            
                <a href="../../guides/services/bgw.html">
            
                    
                        <b>1.4.2.</b>
                    
                    BGW
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../guides/services/bfe.html">
            
                <a href="../../guides/services/bfe.html">
            
                    
                        <b>1.4.3.</b>
                    
                    BFE
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../guides/passport.html">
            
                <a href="../../guides/passport.html">
            
                    
                        <b>1.5.</b>
                    
                    Pass技术架构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../guides/passport/dbgate.html">
            
                <a href="../../guides/passport/dbgate.html">
            
                    
                        <b>1.5.1.</b>
                    
                    DBGATE
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../guides/passport/session.html">
            
                <a href="../../guides/passport/session.html">
            
                    
                        <b>1.5.2.</b>
                    
                    SESSION
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                        <b>1.6.</b>
                    
                    开发环境配置
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../guides/environment/instances.html">
            
                <a href="../../guides/environment/instances.html">
            
                    
                        <b>1.6.1.</b>
                    
                    开发机实例创建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../guides/environment/server_tool.html">
            
                <a href="../../guides/environment/server_tool.html">
            
                    
                        <b>1.6.2.</b>
                    
                    开发机配套工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../guides/environment/tool.html">
            
                <a href="../../guides/environment/tool.html">
            
                    
                        <b>1.6.3.</b>
                    
                    本地常用工具
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">[第二章] 业务项目</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../experiment/">
            
                <a href="../experiment/">
            
                    
                        <b>2.1.</b>
                    
                    分层实验平台
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../experiment/concept.html">
            
                <a href="../experiment/concept.html">
            
                    
                        <b>2.1.1.</b>
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../experiment/concept_parse.html">
            
                <a href="../experiment/concept_parse.html">
            
                    
                        <b>2.1.2.</b>
                    
                    概念剖析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../experiment/quick_start.html">
            
                <a href="../experiment/quick_start.html">
            
                    
                        <b>2.1.3.</b>
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.3.1" data-path="../experiment/quick_start_experiment.html">
            
                <a href="../experiment/quick_start_experiment.html">
            
                    
                        <b>2.1.3.1.</b>
                    
                    实验创建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.2" data-path="../experiment/quick_start_usage.html">
            
                <a href="../experiment/quick_start_usage.html">
            
                    
                        <b>2.1.3.2.</b>
                    
                    业务层应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.3" data-path="../experiment/quick_start_chart.html">
            
                <a href="../experiment/quick_start_chart.html">
            
                    
                        <b>2.1.3.3.</b>
                    
                    报表查询
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.4" >
            
                <span>
            
                    
                        <b>2.1.4.</b>
                    
                    实现机制
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.4.1" data-path="../experiment/implement_platform.html">
            
                <a href="../experiment/implement_platform.html">
            
                    
                        <b>2.1.4.1.</b>
                    
                    实验平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.2" data-path="../experiment/implement_process.html">
            
                <a href="../experiment/implement_process.html">
            
                    
                        <b>2.1.4.2.</b>
                    
                    实验流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.3" data-path="../experiment/implement_sdk.html">
            
                <a href="../experiment/implement_sdk.html">
            
                    
                        <b>2.1.4.3.</b>
                    
                    SDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.4" data-path="../experiment/implement_expression.html">
            
                <a href="../experiment/implement_expression.html">
            
                    
                        <b>2.1.4.4.</b>
                    
                    表达式执行器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.5" data-path="../experiment/implement_chart.html">
            
                <a href="../experiment/implement_chart.html">
            
                    
                        <b>2.1.4.5.</b>
                    
                    通用报表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../experiment/cases.html">
            
                <a href="../experiment/cases.html">
            
                    
                        <b>2.1.5.</b>
                    
                    应用案例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="../experiment/reference.html">
            
                <a href="../experiment/reference.html">
            
                    
                        <b>2.1.6.</b>
                    
                    参考资料
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../auth-widget/">
            
                <a href="../auth-widget/">
            
                    
                        <b>2.2.</b>
                    
                    验证控件重构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" >
            
                <span>
            
                    
                        <b>2.2.1.</b>
                    
                    当前现状
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1.1" data-path="../auth-widget/current/authtoken.html">
            
                <a href="../auth-widget/current/authtoken.html">
            
                    
                        <b>2.2.1.1.</b>
                    
                    初始化阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.2" data-path="../auth-widget/current/render.html">
            
                <a href="../auth-widget/current/render.html">
            
                    
                        <b>2.2.1.2.</b>
                    
                    渲染阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.3" data-path="../auth-widget/current/check.html">
            
                <a href="../auth-widget/current/check.html">
            
                    
                        <b>2.2.1.3.</b>
                    
                    验证阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.4" data-path="../auth-widget/current/use.html">
            
                <a href="../auth-widget/current/use.html">
            
                    
                        <b>2.2.1.4.</b>
                    
                    使用阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.5" data-path="../auth-widget/current/now.html">
            
                <a href="../auth-widget/current/now.html">
            
                    
                        <b>2.2.1.5.</b>
                    
                    使用场景
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../auth-widget/refactor.html">
            
                <a href="../auth-widget/refactor.html">
            
                    
                        <b>2.2.2.</b>
                    
                    重构实现
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.1" data-path="../auth-widget/refactor/context.html">
            
                <a href="../auth-widget/refactor/context.html">
            
                    
                        <b>2.2.2.1.</b>
                    
                    验证控件上下文
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.2" data-path="../auth-widget/refactor/interface.html">
            
                <a href="../auth-widget/refactor/interface.html">
            
                    
                        <b>2.2.2.2.</b>
                    
                    验证控件抽象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.3" data-path="../auth-widget/refactor/mobile.html">
            
                <a href="../auth-widget/refactor/mobile.html">
            
                    
                        <b>2.2.2.3.</b>
                    
                    手机验证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.4" data-path="../auth-widget/refactor/email.html">
            
                <a href="../auth-widget/refactor/email.html">
            
                    
                        <b>2.2.2.4.</b>
                    
                    邮箱验证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.5" data-path="../auth-widget/refactor/facematch.html">
            
                <a href="../auth-widget/refactor/facematch.html">
            
                    
                        <b>2.2.2.5.</b>
                    
                    刷脸验证
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.3" >
            
                <span>
            
                    
                        <b>2.2.3.</b>
                    
                    新版使用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.3.1" data-path="../auth-widget/new/authtoken.html">
            
                <a href="../auth-widget/new/authtoken.html">
            
                    
                        <b>2.2.3.1.</b>
                    
                    初始化阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.2" data-path="../auth-widget/new/render.html">
            
                <a href="../auth-widget/new/render.html">
            
                    
                        <b>2.2.3.2.</b>
                    
                    渲染阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.3" data-path="../auth-widget/new/check.html">
            
                <a href="../auth-widget/new/check.html">
            
                    
                        <b>2.2.3.3.</b>
                    
                    验证阶段
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.4" data-path="../auth-widget/new/use.html">
            
                <a href="../auth-widget/new/use.html">
            
                    
                        <b>2.2.3.4.</b>
                    
                    使用阶段
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../mobile-refactor/">
            
                <a href="../mobile-refactor/">
            
                    
                        <b>2.3.</b>
                    
                    联系手机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../mobile-refactor/ppui.html">
            
                <a href="../mobile-refactor/ppui.html">
            
                    
                        <b>2.3.1.</b>
                    
                    业务层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../mobile-refactor/dbgate.html">
            
                <a href="../mobile-refactor/dbgate.html">
            
                    
                        <b>2.3.2.</b>
                    
                    后端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../mobile-refactor/plan.html">
            
                <a href="../mobile-refactor/plan.html">
            
                    
                        <b>2.3.3.</b>
                    
                    开发方案
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../portrait-to-orp/orp/">
            
                <a href="../portrait-to-orp/orp/">
            
                    
                        <b>2.4.</b>
                    
                    头像迁移ORP
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../portrait-to-orp/orp/evaluate.html">
            
                <a href="../portrait-to-orp/orp/evaluate.html">
            
                    
                        <b>2.4.1.</b>
                    
                    流量评估
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../portrait-to-orp/orp/deploy.html">
            
                <a href="../portrait-to-orp/orp/deploy.html">
            
                    
                        <b>2.4.2.</b>
                    
                    服务部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../portrait-to-orp/orp/test.html">
            
                <a href="../portrait-to-orp/orp/test.html">
            
                    
                        <b>2.4.3.</b>
                    
                    测试方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../portrait-to-orp/orp/test-result.html">
            
                <a href="../portrait-to-orp/orp/test-result.html">
            
                    
                        <b>2.4.4.</b>
                    
                    测试结论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../portrait-to-orp/orp/bug.html">
            
                <a href="../portrait-to-orp/orp/bug.html">
            
                    
                        <b>2.4.5.</b>
                    
                    BUG收集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../portrait-to-orp/orp/service.html">
            
                <a href="../portrait-to-orp/orp/service.html">
            
                    
                        <b>2.4.6.</b>
                    
                    依赖服务梳理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../portrait-to-orp/orp/monitor.html">
            
                <a href="../portrait-to-orp/orp/monitor.html">
            
                    
                        <b>2.4.7.</b>
                    
                    监控规则梳理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.8" data-path="../portrait-to-orp/orp/plan.html">
            
                <a href="../portrait-to-orp/orp/plan.html">
            
                    
                        <b>2.4.8.</b>
                    
                    计划排期
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../experiment/trace/">
            
                <a href="../experiment/trace/">
            
                    
                        <b>2.5.</b>
                    
                    TraceID机制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../experiment/trace/concept.html">
            
                <a href="../experiment/trace/concept.html">
            
                    
                        <b>2.5.1.</b>
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" >
            
                <span>
            
                    
                        <b>2.5.2.</b>
                    
                    实现机制
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.2.1" data-path="../experiment/trace/trace_id.html">
            
                <a href="../experiment/trace/trace_id.html">
            
                    
                        <b>2.5.2.1.</b>
                    
                    TraceID及管理器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2.2" data-path="../experiment/trace/flow_id.html">
            
                <a href="../experiment/trace/flow_id.html">
            
                    
                        <b>2.5.2.2.</b>
                    
                    流程定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2.3" data-path="../experiment/trace/flow_handle.html">
            
                <a href="../experiment/trace/flow_handle.html">
            
                    
                        <b>2.5.2.3.</b>
                    
                    流程处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2.4" data-path="../experiment/trace/exp_append_trace_id.html">
            
                <a href="../experiment/trace/exp_append_trace_id.html">
            
                    
                        <b>2.5.2.4.</b>
                    
                    小流量实验
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2.5" data-path="../experiment/trace/trace_id_transfer.html">
            
                <a href="../experiment/trace/trace_id_transfer.html">
            
                    
                        <b>2.5.2.5.</b>
                    
                    TraceID传递
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.2.5.1" data-path="../experiment/trace/trace_id_transfer_ppui.html">
            
                <a href="../experiment/trace/trace_id_transfer_ppui.html">
            
                    
                        <b>2.5.2.5.1.</b>
                    
                    PPUI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2.5.2" data-path="../experiment/trace/trace_id_transfer_fe.html">
            
                <a href="../experiment/trace/trace_id_transfer_fe.html">
            
                    
                        <b>2.5.2.5.2.</b>
                    
                    FE
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2.5.3" data-path="../experiment/trace/trace_id_transfer_na.html">
            
                <a href="../experiment/trace/trace_id_transfer_na.html">
            
                    
                        <b>2.5.2.5.3.</b>
                    
                    NA端
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5.2.6" data-path="../experiment/trace/log.html">
            
                <a href="../experiment/trace/log.html">
            
                    
                        <b>2.5.2.6.</b>
                    
                    日志记录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../face-cluster/">
            
                <a href="../face-cluster/">
            
                    
                        <b>2.6.</b>
                    
                    人脸聚类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" >
            
                <span>
            
                    
                        <b>2.6.1.</b>
                    
                    存量聚类
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1.1" data-path="../face-cluster/clustering/feature.html">
            
                <a href="../face-cluster/clustering/feature.html">
            
                    
                        <b>2.6.1.1.</b>
                    
                    特征提取
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.1.2" data-path="../face-cluster/clustering/cluster.html">
            
                <a href="../face-cluster/clustering/cluster.html">
            
                    
                        <b>2.6.1.2.</b>
                    
                    聚类输出
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../face-cluster/face.html">
            
                <a href="../face-cluster/face.html">
            
                    
                        <b>2.6.2.</b>
                    
                    人脸管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.2.1" data-path="../face-cluster/face/register.html">
            
                <a href="../face-cluster/face/register.html">
            
                    
                        <b>2.6.2.1.</b>
                    
                    人脸注册
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2.2" data-path="../face-cluster/face/search.html">
            
                <a href="../face-cluster/face/search.html">
            
                    
                        <b>2.6.2.2.</b>
                    
                    人脸搜索
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6.3" >
            
                <span>
            
                    
                        <b>2.6.3.</b>
                    
                    业务改造
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.3.1" data-path="../face-cluster/refactor/face.html">
            
                <a href="../face-cluster/refactor/face.html">
            
                    
                        <b>2.6.3.1.</b>
                    
                    刷脸开关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3.2" data-path="../face-cluster/refactor/face_login.html">
            
                <a href="../face-cluster/refactor/face_login.html">
            
                    
                        <b>2.6.3.2.</b>
                    
                    刷脸登录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../face-cluster/question.html">
            
                <a href="../face-cluster/question.html">
            
                    
                        <b>2.6.4.</b>
                    
                    问题探讨
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../face-platform/">
            
                <a href="../face-platform/">
            
                    
                        <b>2.7.</b>
                    
                    Pass人脸库建设
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../face-platform/phase-1.html">
            
                <a href="../face-platform/phase-1.html">
            
                    
                        <b>2.7.1.</b>
                    
                    一期
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="../face-platform/phase-2.html">
            
                <a href="../face-platform/phase-2.html">
            
                    
                        <b>2.7.2.</b>
                    
                    二期
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../ipv6/">
            
                <a href="../ipv6/">
            
                    
                        <b>2.8.</b>
                    
                    IPV6兼容改造
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" >
            
                <span>
            
                    
                        <b>2.9.</b>
                    
                    NA登录重构
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.9.1" data-path="../nalogin-refactor/">
            
                <a href="../nalogin-refactor/">
            
                    
                        <b>2.9.1.</b>
                    
                    需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.2" data-path="../nalogin-refactor/experiment.html">
            
                <a href="../nalogin-refactor/experiment.html">
            
                    
                        <b>2.9.2.</b>
                    
                    新版页面小流量方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.3" >
            
                <span>
            
                    
                        <b>2.9.3.</b>
                    
                    接口改造
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.9.3.1" data-path="../nalogin-refactor/refactor/check.html">
            
                <a href="../nalogin-refactor/refactor/check.html">
            
                    
                        <b>2.9.3.1.</b>
                    
                    帐号检测
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.3.2" data-path="../nalogin-refactor/refactor/history.html">
            
                <a href="../nalogin-refactor/refactor/history.html">
            
                    
                        <b>2.9.3.2.</b>
                    
                    获取登录历史
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.3.3" data-path="../nalogin-refactor/refactor/sendSMS.html">
            
                <a href="../nalogin-refactor/refactor/sendSMS.html">
            
                    
                        <b>2.9.3.3.</b>
                    
                    发送短信验证码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.3.4" data-path="../nalogin-refactor/refactor/smsLogin.html">
            
                <a href="../nalogin-refactor/refactor/smsLogin.html">
            
                    
                        <b>2.9.3.4.</b>
                    
                    短信登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.3.5" data-path="../nalogin-refactor/refactor/login.html">
            
                <a href="../nalogin-refactor/refactor/login.html">
            
                    
                        <b>2.9.3.5.</b>
                    
                    帐密登录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9.4" data-path="../nalogin-refactor/smarty.html">
            
                <a href="../nalogin-refactor/smarty.html">
            
                    
                        <b>2.9.4.</b>
                    
                    smarty模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="../login-refactor/">
            
                <a href="../login-refactor/">
            
                    
                        <b>2.10.</b>
                    
                    登录服务重构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="../login-refactor/api.html">
            
                <a href="../login-refactor/api.html">
            
                    
                        <b>2.10.1.</b>
                    
                    接口设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="../login-refactor/server.html">
            
                <a href="../login-refactor/server.html">
            
                    
                        <b>2.10.2.</b>
                    
                    服务端实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="../login-refactor/plan.html">
            
                <a href="../login-refactor/plan.html">
            
                    
                        <b>2.10.3.</b>
                    
                    开发计划
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../portrait-url-refactor/">
            
                <a href="../portrait-url-refactor/">
            
                    
                        <b>2.11.</b>
                    
                    头像地址重构
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.12" data-path="./">
            
                <a href="./">
            
                    
                        <b>2.12.</b>
                    
                    头像存储迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="../log-masking/">
            
                <a href="../log-masking/">
            
                    
                        <b>2.13.</b>
                    
                    业务日志脱敏
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">[第三章] 服务接入</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../../open/auth-widget/">
            
                <a href="../../open/auth-widget/">
            
                    
                        <b>3.1.</b>
                    
                    验证控件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="../../open/auth-widget/prepare.html">
            
                <a href="../../open/auth-widget/prepare.html">
            
                    
                        <b>3.1.1.</b>
                    
                    前期准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="../../open/auth-widget/token.html">
            
                <a href="../../open/auth-widget/token.html">
            
                    
                        <b>3.1.2.</b>
                    
                    AuthToken生成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="../../open/auth-widget/wap.html">
            
                <a href="../../open/auth-widget/wap.html">
            
                    
                        <b>3.1.3.</b>
                    
                    NA/WAP端接入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.4" data-path="../../open/auth-widget/pc.html">
            
                <a href="../../open/auth-widget/pc.html">
            
                    
                        <b>3.1.4.</b>
                    
                    PC端接入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.5" data-path="../../open/auth-widget/auth.html">
            
                <a href="../../open/auth-widget/auth.html">
            
                    
                        <b>3.1.5.</b>
                    
                    合法性校验
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.6" data-path="../../open/auth-widget/code.html">
            
                <a href="../../open/auth-widget/code.html">
            
                    
                        <b>3.1.6.</b>
                    
                    附:验证控件SDK源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../../open/portrait/">
            
                <a href="../../open/portrait/">
            
                    
                        <b>3.2.</b>
                    
                    头像接入
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >头像存储迁移</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x80CC;&#x666F;"><a name="&#x80CC;&#x666F;" class="anchor-navigation-ex-anchor" href="#&#x80CC;&#x666F;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x80CC;&#x666F;</h1>
<p>&#x516C;&#x53F8;&#x6B63;&#x5728;&#x5BF9;&#x540C;&#x7C7B;&#x57FA;&#x7840;&#x670D;&#x52A1;&#x8FDB;&#x884C;&#x6574;&#x5408;&#xFF0C;&#x76EE;&#x524D;&#x5934;&#x50CF;&#x4F9D;&#x8D56;&#x7684;hiphoto&#x5728;&#x5176;&#x4E2D;&#xFF0C;hiphoto&#x5C06;&#x4E0D;&#x518D;&#x7EF4;&#x62A4;&#xFF0C;&#x9700;&#x8FC1;&#x79FB;&#x81F3;&#x767E;&#x5EA6;&#x4E91;BOS&#x3002;</p>
<h1 id="&#x5F53;&#x524D;&#x73B0;&#x72B6;"><a name="&#x5F53;&#x524D;&#x73B0;&#x72B6;" class="anchor-navigation-ex-anchor" href="#&#x5F53;&#x524D;&#x73B0;&#x72B6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F53;&#x524D;&#x73B0;&#x72B6;</h1>
<ul>
<li>&#x6570;&#x636E;&#x91CF;&#x7EA7;&#xFF1A;&#x81EA;&#x5B9A;&#x4E49;&#x5934;&#x50CF;3.9&#x4EBF;&#xFF0C;&#x70ED;&#x95E8;&#x5934;&#x50CF;2.3&#x4EBF;&#x3002;</li>
<li>&#x5B58;&#x50A8;&#x5BB9;&#x91CF;&#xFF1A;36TB (&#x6309;&#x5E73;&#x5747;100KB&#x8BA1;&#x7B97;)&#x3002;</li>
<li>Redis&#x5BB9;&#x91CF;&#xFF1A;280GB (3&#x4E2A;&#x526F;&#x672C;&#xFF0C;&#x5171;&#x8BA1;&#x7EA6;5&#x53F0;64G&#x673A;&#x5668;)&#x3002;</li>
<li>&#x8BFB;&#x8BF7;&#x6C42;&#x91CF;&#xFF1A;589202&#x4E07;&#x6B21;/&#x6708;</li>
<li>&#x5199;&#x8BF7;&#x6C42;&#x91CF;&#xFF1A;117&#x4E07;&#x6B21;/&#x6708;</li>
</ul>
<h1 id="&#x6536;&#x76CA;"><a name="&#x6536;&#x76CA;" class="anchor-navigation-ex-anchor" href="#&#x6536;&#x76CA;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6536;&#x76CA;</h1>
<ul>
<li>&#x63D0;&#x5347;&#x7CFB;&#x7EDF;&#x7A33;&#x5B9A;&#x6027;&#x3002;</li>
<li>&#x8282;&#x7701;Redis&#x8D44;&#x6E90;&#x3002;</li>
</ul>
<h1 id="&#x6210;&#x672C;"><a name="&#x6210;&#x672C;" class="anchor-navigation-ex-anchor" href="#&#x6210;&#x672C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6210;&#x672C;</h1>
<p><a href="https://cloud.baidu.com/doc/BOS/s/Ok1rmtaow/" target="_blank">https://cloud.baidu.com/doc/BOS/s/Ok1rmtaow/</a></p>
<ul>
<li>&#x5B58;&#x50A8;&#x8D39;&#x7528;&#xFF1A;0.119 <em> 36 </em> 1024 ~= 4386&#x5143;/&#x6708;  (&#x76EE;&#x524D;36TB)</li>
<li>&#x8BFB;&#x8BF7;&#x6C42;&#x91CF;&#xFF1A;589202 * 0.01 ~= 5892&#x5143;/&#x6708;      (&#x6708;&#x8BFB;&#x8BF7;&#x6C42;&#x91CF;589202&#x4E07;&#x6B21;&#xFF0C;&#x8BFB;Redis&#x65B9;&#x6848;)</li>
<li>&#x5199;&#x8BF7;&#x6C42;&#x91CF;&#xFF1A;117 * 0.01    ~= 1&#x5143;/&#x6708;         (&#x6708;&#x5199;&#x8BF7;&#x6C42;&#x91CF;117&#x4E07;&#x6B21;)</li>
<li>&#x8BFB;&#x8BF7;&#x6C42;&#x91CF;&#xFF1A;207&#x4EBF; * 0.01   ~= 20736&#x5143;/&#x6708;    (&#x6708;&#x8BFB;&#x8BF7;&#x6C42;&#x91CF;207&#x4EBF;&#xFF0C;&#x8BFB;dbgate&#x65B9;&#x6848;)</li>
</ul>
<p>&#x5171;&#x8BA1;31033&#x5143;/&#x6708;&#x3002;</p>
<h2 id="&#x5F53;&#x524D;&#x65B9;&#x6848;"><a name="&#x5F53;&#x524D;&#x65B9;&#x6848;" class="anchor-navigation-ex-anchor" href="#&#x5F53;&#x524D;&#x65B9;&#x6848;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F53;&#x524D;&#x65B9;&#x6848;</h2>
<h2 id="redis"><a name="redis" class="anchor-navigation-ex-anchor" href="#redis"><i class="fa fa-link" aria-hidden="true"></i></a>Redis</h2>
<p>&#x8D1F;&#x8D23;&#x5B58;&#x50A8;userid&#x4E0E;pic_id&#x7684;&#x5173;&#x7CFB;</p>
<ul>
<li>key&#xFF1A;tieba${user_id}</li>
<li>value&#xFF1A;${portrait_id}</li>
</ul>
<p><strong>pic_id&#x53D6;&#x503C;&#x89C4;&#x5219;&#xFF1A;</strong></p>
<ul>
<li>&#x9ED8;&#x8BA4;&#x5934;&#x50CF;&#xFF1A;&#x7A7A;&#x3001;0&#x3001;1</li>
<li>&#x70ED;&#x95E8;&#x5934;&#x50CF;&#xFF1A;hotitem:wildkid:1-15</li>
<li>&#x81EA;&#x5B9A;&#x4E49;&#x5934;&#x50CF;&#xFF1A;&#x5176;&#x4ED6;&#x6570;&#x5B57;</li>
</ul>
<h2 id="hiphoto"><a name="hiphoto" class="anchor-navigation-ex-anchor" href="#hiphoto"><i class="fa fa-link" aria-hidden="true"></i></a>Hiphoto</h2>
<p>&#x4EE5;portrait_id&#x4E3A;&#x4E3B;&#x952E;&#x5B58;&#x50A8;&#x56FE;&#x7247;&#x6587;&#x4EF6;&#xFF0C;&#x6700;&#x7EC8;&#x57FA;&#x4E8E;bos&#x5B58;&#x50A8;&#xFF0C;pic_id&#x5B58;&#x5728;&#x6620;&#x5C04;&#x5173;&#x7CFB;&#xFF0C;&#x53EF;&#x901A;&#x8FC7;meta&#x4FE1;&#x606F;&#x67E5;&#x770B;&#x3002;</p>
<pre class="language-"><code class="lang-php"><span class="token keyword">array</span> <span class="token punctuation">(</span>
  <span class="token single-quoted-string string">&apos;pic_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token single-quoted-string string">&apos;51712564473&apos;</span><span class="token punctuation">,</span> <span class="token comment">// &#x5B58;&#x50A8;&#x7684;&#x56FE;&#x7247;ID</span>
  <span class="token single-quoted-string string">&apos;pic_status&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;product_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;idc_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">1</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;mapping_pic_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token single-quoted-string string">&apos;49417932313&apos;</span><span class="token punctuation">,</span><span class="token comment">// &#x771F;&#x5B9E;&#x56FE;&#x7247;ID&#xFF0C;&#x5982;&#x679C;&#x5B58;&#x5728;&#x7528;&#x6B64;&#x503C;&#x624D;&#x80FD;&#x5728;Hiphoto&#x4F9D;&#x8D56;&#x7684;BOS&#x53D6;&#x5230;&#x539F;&#x56FE;</span>
  <span class="token single-quoted-string string">&apos;width&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">500</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;height&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">500</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;pic_type&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">1</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;data_len&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">15412</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;sign&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token single-quoted-string string">&apos;14915379197797740924&apos;</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;delete_flag&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;ban_flag&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;private_flag&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;create_time&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">1518589543</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;update_time&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">1518589543</span><span class="token punctuation">,</span>
  <span class="token single-quoted-string string">&apos;err_no&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
<span class="token punctuation">)</span>
</code></pre>
<h1 id="&#x5F00;&#x53D1;&#x5468;&#x671F;"><a name="&#x5F00;&#x53D1;&#x5468;&#x671F;" class="anchor-navigation-ex-anchor" href="#&#x5F00;&#x53D1;&#x5468;&#x671F;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F00;&#x53D1;&#x5468;&#x671F;</h1>
<h2 id="&#x7B2C;&#x4E00;&#x9636;&#x6BB5;&#xFF1A;&#x53CC;&#x5199;"><a name="&#x7B2C;&#x4E00;&#x9636;&#x6BB5;&#xFF1A;&#x53CC;&#x5199;" class="anchor-navigation-ex-anchor" href="#&#x7B2C;&#x4E00;&#x9636;&#x6BB5;&#xFF1A;&#x53CC;&#x5199;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7B2C;&#x4E00;&#x9636;&#x6BB5;&#xFF1A;&#x53CC;&#x5199;</h2>
<p>portrait_id&#x7531;hiphoto&#x5206;&#x914D;&#x3002;</p>
<ul>
<li><p>dbgate&#x65B0;&#x589E;<code>portraitId</code>&#x5B57;&#x6BB5;&#xFF0C;&#x5B58;&#x50A8;&#x8BED;&#x4E49;&#x4E0E;RedisValue&#x4E00;&#x81F4;&#x3002;</p>
</li>
<li><p>PPUI&#x53CC;&#x5199;redis&#x3001;dbgate&#x3001;hiphoto&#x3001;bos&#x3002;</p>
</li>
<li><p>redis(user_id -&gt; portrait_id)</p>
</li>
<li><p>dbgate(user_id -&gt; portrait_id)</p>
</li>
<li><p>hiphoto(portrait_id.jpg)</p>
</li>
<li><p>bos(user_id.jpg)</p>
</li>
</ul>
<p>dbgate&#x4E2D;<code>portraitId</code>&#x7684;&#x5B58;&#x50A8;&#x89C4;&#x5219;&#xFF1A;</p>
<ul>
<li>&#x9ED8;&#x8BA4;&#x5934;&#x50CF;&#xFF1A;&#x7A7A;&#x3001;0&#x3001;1</li>
<li>&#x70ED;&#x95E8;&#x5934;&#x50CF;&#xFF1A;1-15 (&#x4EE3;&#x8868;&#x70ED;&#x95E8;&#x5934;&#x50CF;&#x7F16;&#x53F7;)</li>
<li>&#x81EA;&#x5B9A;&#x4E49;&#x5934;&#x50CF;&#xFF1A;&#x5934;&#x50CF;&#x4E0A;&#x4F20;&#x65F6;&#x95F4;&#x6233;</li>
</ul>
<h2 id="&#x7B2C;&#x4E8C;&#x9636;&#x6BB5;&#xFF1A;&#x6570;&#x636E;&#x8FC1;&#x79FB;"><a name="&#x7B2C;&#x4E8C;&#x9636;&#x6BB5;&#xFF1A;&#x6570;&#x636E;&#x8FC1;&#x79FB;" class="anchor-navigation-ex-anchor" href="#&#x7B2C;&#x4E8C;&#x9636;&#x6BB5;&#xFF1A;&#x6570;&#x636E;&#x8FC1;&#x79FB;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7B2C;&#x4E8C;&#x9636;&#x6BB5;&#xFF1A;&#x6570;&#x636E;&#x8FC1;&#x79FB;</h2>
<ul>
<li>redis(userid -&gt; portrait_id) &#x5B58;&#x91CF;&#x5BFC;&#x5165;&#x81F3; dbgate(userid -&gt; portrait_id)</li>
<li>hiphoto(portrait_id.jpg) &#x5B58;&#x91CF;&#x5BFC;&#x5165;&#x81F3; bos(user_id.jpg)</li>
</ul>
<p>&#x5199;&#x5165;dbgate&#x7684;<code>portraitId</code>&#x6CE8;&#x610F;&#x505A;&#x597D;&#x8F6C;&#x6362;&#xFF0C;&#x5BF9;&#x4E8E;&#x5B58;&#x91CF;&#x7684;portrait_id&#x4E0D;&#x8F6C;&#x6362;&#x76F4;&#x63A5;&#x5B58;&#x5165;(&#x6216;&#x76F4;&#x63A5;&#x5199;&#x5165;&#x5F53;&#x524D;&#x65F6;&#x95F4;)&#x3002;</p>
<h2 id="&#x7B2C;&#x4E09;&#x9636;&#x6BB5;&#xFF1A;&#x5207;dbgate&#x3001;bos&#x8BFB;"><a name="&#x7B2C;&#x4E09;&#x9636;&#x6BB5;&#xFF1A;&#x5207;dbgate&#x3001;bos&#x8BFB;" class="anchor-navigation-ex-anchor" href="#&#x7B2C;&#x4E09;&#x9636;&#x6BB5;&#xFF1A;&#x5207;dbgate&#x3001;bos&#x8BFB;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7B2C;&#x4E09;&#x9636;&#x6BB5;&#xFF1A;&#x5207;dbgate&#x3001;bos&#x8BFB;</h2>
<ul>
<li>dbgate(userid -&gt; portrait_id)</li>
<li>bos(user_id.jpg)</li>
</ul>
<p>&#x6D89;&#x53CA;<code>PPUI</code>&#x3001;<code>goppui</code>&#x4E24;&#x4E2A;&#x7CFB;&#x7EDF;&#xFF0C;&#x6CE8;&#x610F;<code>portraitId</code>&#x7684;&#x8BED;&#x4E49;&#x7684;&#x6539;&#x53D8;&#xFF1A;</p>
<ul>
<li>&#x9ED8;&#x8BA4;&#x5934;&#x50CF;&#xFF1A;&#x7A7A;&#x3001;0</li>
<li>&#x70ED;&#x95E8;&#x5934;&#x50CF;&#xFF1A;1-15</li>
<li>&#x81EA;&#x5B9A;&#x4E49;&#x5934;&#x50CF;&#xFF1A;&#x5176;&#x4ED6;&#x6570;&#x5B57;(&#x53EF;&#x80FD;&#x662F;&#x65F6;&#x95F4;&#x6233;&#x6216;&#x539F;portrait_id)</li>
</ul>
<h2 id="&#x7B2C;&#x56DB;&#x9636;&#x6BB5;&#xFF1A;&#x505C;redis&#x3001;hiphoto&#x5199;"><a name="&#x7B2C;&#x56DB;&#x9636;&#x6BB5;&#xFF1A;&#x505C;redis&#x3001;hiphoto&#x5199;" class="anchor-navigation-ex-anchor" href="#&#x7B2C;&#x56DB;&#x9636;&#x6BB5;&#xFF1A;&#x505C;redis&#x3001;hiphoto&#x5199;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7B2C;&#x56DB;&#x9636;&#x6BB5;&#xFF1A;&#x505C;redis&#x3001;hiphoto&#x5199;</h2>
<p>portrait_id&#x4E3A;&#x5F53;&#x524D;&#x65F6;&#x95F4;&#x6233;</p>
<ul>
<li>dbgate(userid -&gt; portrait_id)</li>
<li>bos(user_id.jpg)</li>
</ul>
<footer class="page-footer-ex"> <span class="page-footer-ex-copyright"> &#xA9; fzu </span> &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; <span class="page-footer-ex-footer-update"> &#x6700;&#x540E;&#x4FEE;&#x6539;: 2020-07-14 </span> </footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../portrait-url-refactor/" class="navigation navigation-prev " aria-label="Previous page: 头像地址重构">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../log-masking/" class="navigation navigation-next " aria-label="Next page: 业务日志脱敏">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"头像存储迁移","level":"2.12","depth":1,"next":{"title":"业务日志脱敏","level":"2.13","depth":1,"path":"projects/log-masking/index.md","ref":"projects/log-masking/index.md","articles":[]},"previous":{"title":"头像地址重构","level":"2.11","depth":1,"path":"projects/portrait-url-refactor/index.md","ref":"projects/portrait-url-refactor/index.md","articles":[]},"dir":"ltr"},"config":{"plugins":["multipart","codeblock-filename","anchor-navigation-ex","page-footer-ex","prism","splitter","custom-js-css","-sharing"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-okaidia.css"]},"page-footer-ex":{"copyright":"© fzu","markdown":true,"update_format":"YYYY-MM-DD","update_label":"最后修改:"},"splitter":{},"search":{},"multipart":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"codeblock-filename":{},"custom-js-css":{"css":["assets/css/main.css","assets/css/folding-chapters.css"],"js":["assets/js/folding-chapters.js"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true}},"theme":"default","author":"xiajie <xiajie01@baidu.com>","pdf":{"pageBreaksBefore":"/","headerTemplate":null,"paperSize":"a4","margin":{"right":62,"left":62,"top":36,"bottom":36},"fontSize":12,"fontFamily":"Arial","footerTemplate":null,"chapterMark":"pagebreak","pageNumbers":true},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"isbn":"","variables":{},"title":"Passport业务手册","language":"zh-hans","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":null},"sidebar":{}},"gitbook":"*","description":"Passport业务手册","extension":null},"file":{"path":"projects/portrait-to-bos/index.md","mtime":"2020-07-14T00:09:41.366Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-14T00:46:01.528Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-custom-js-css/fc1111ed2beb4b0151beb99a0ab82def-folding-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

